<div id="left-top">
	<script>
	  	$(function() {
			$("#datepicker" ).datepicker( $.datepicker.regional[ "tr" ] );
	  		$("#datepicker" ).datepicker({ dateFormat: 'dd.mm.yy', yearRange: 'c0:c+1' ,changeYear: true});
	  		$("#datepicker2" ).datepicker( $.datepicker.regional[ "tr" ] );
	  		$("#datepicker2").datepicker({ dateFormat: 'dd.mm.yy',yearRange: 'c0:c+1' ,changeYear: true});
	  	});
	  	
	</script>
	<script>
	    $(function() {
	  		var availableTags = [
	            <?php
	              foreach ($this->commonlibrary->portlist as $key => $value) {
	                echo '"' . $key .','. $value  .'",';
	              } 
	            ?>
	  		];
	  		$( "#from_acomplete" ).autocomplete({
	  			source: availableTags,autoFocus: true
	  		});
	  		$( "#to_acomplete" ).autocomplete({
	  			source: availableTags,autoFocus: true
	  		});
	  	});
	</script>
	<script>
	  $(document).ready(function() {
	    $("button").button();
	  });
	  </script>
	<div class="left_column_wrapper">
	  <div class="left_column_wrapper_inner">
	    <?php echo form_open('searchflight',array('id'=>'searchflight')); ?>
			<table style="font-family: verdana; font-size: 11px; color:#FFF; width:220px;">
				<tr>
					<td>&nbsp;<input type="radio" name="trip_type" value="RT" <?php echo set_radio('trip_type', 'RT',TRUE); ?> />
						<?php echo $this->lang->line('round_trip');?>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="trip_type" value="OW" <?php echo set_radio('trip_type', 'OW'); ?> />
						<?php echo $this->lang->line('one_way');?>
					</td>
				</tr>
			</table>
			<br>
			<table id="search_table">
				<tr>
					<td><?php echo $this->lang->line('from');?></td>
					<td><?php echo $this->lang->line('to');?></td>
				</tr>
				<tr>
					<td><input id="from_acomplete" type="text" name="from" value="<?php echo set_value('from'); ?>" style="width: 97px; border:1px solid #BBB; color:#444; background:#FFF;"></td>
	        		<td><input id="to_acomplete" type="text" name="to" value="<?php echo set_value('to'); ?>" style="width: 100px;; border:1px solid #BBB; color:#444; background:#FFF;"></td>				
				</tr>
				<tr>
					<td><?php echo $this->lang->line('depart_on');?></td>
					<td><?php echo $this->lang->line('return_on');?></td>
				</tr>
				<tr> <?php $date = date("Y-m-d");$date = date('d.m.Y',strtotime(date("Y-m-d", strtotime($date)) . " +1 day"));?>
					<td><input id="datepicker" style="width: 97px; border:1px solid #BBB; color:#444; background:#FFF;" type="text" name="depart_on" value="<?php echo set_value('depart_on',date('d.m.Y')); ?>"></td>
					<td><input id="datepicker2" style="width: 100px; border:1px solid #BBB; color:#444; background:#FFF;" type="text" name="return_on" value="<?php echo set_value('return_on',$date); ?>"></td>
				</tr>
			</table><br>
			<table id="search_table" align="center>">
				<tr align="center">
					<td class="persons"><?php echo $this->lang->line('adult');?></td>
			        <td class="persons"><?php echo $this->lang->line('child');?></td>
			        <td class="persons"><?php echo $this->lang->line('infant');?></td>
			        <td class="persons"><?php echo $this->lang->line('elder');?></td>
			        <td class="persons"><?php echo $this->lang->line('student');?></td>
				</tr>
				<tr>
					<td align="center">
	          <select name="adults">
	            <option value="0" <?php echo set_select('adults', '0'); ?>>0</option>
	            <option value="1" <?php echo set_select('adults', '1', TRUE); ?>>1</option>
	            <option value="2" <?php echo set_select('adults', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('adults', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('adults', '4'); ?>>4</option>
	          </select>
	        </td>
	        <td align="center">
	          <select name="children">
	            <option value="0" <?php echo set_select('children', '0', TRUE); ?>>0</option>
	            <option value="1" <?php echo set_select('children', '1'); ?>>1</option>
	            <option value="2" <?php echo set_select('children', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('children', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('children', '4'); ?>>4</option>
	          </select>
	        </td>
	        <td align="center">
	          <select name="infants">
	            <option value="0" <?php echo set_select('infants', '0', TRUE); ?>>0</option>
	            <option value="1" <?php echo set_select('infants', '1'); ?>>1</option>
	            <option value="2" <?php echo set_select('infants', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('infants', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('infants', '4'); ?>>4</option>
	          </select>
	        </td>
	        <td align="center">
	          <select name="elders">
	            <option value="0" <?php echo set_select('elders', '0', TRUE); ?>>0</option>
	            <option value="1" <?php echo set_select('elders', '1'); ?>>1</option>
	            <option value="2" <?php echo set_select('elders', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('elders', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('elders', '4'); ?>>4</option>
	          </select>
	        </td>
	        <td align="center">
	          <select name="students">
	            <option value="0" <?php echo set_select('students', '0', TRUE); ?>>0</option>
	            <option value="1" <?php echo set_select('students', '1'); ?>>1</option>
	            <option value="2" <?php echo set_select('students', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('students', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('students', '4'); ?>>4</option>
	          </select>
			</td>
			</tr>
			<tr align="center">
				<td class="ages">(12+)</td>
				<td class="ages">(2-12)</td>
				<td class="ages">(0-2)</td>
				<td class="ages">(65+)</td>
				<td class="ages">(13-24)</td>
			</tr>
			<tr>
			  <td class="persons"><?php echo $this->lang->line('military');?></td>
			  <td colspan="4" style="font-size:11px;">
	          <select name="military">
	            <option value="0" <?php echo set_select('military', '0', TRUE); ?>>0</option>
	            <option value="1" <?php echo set_select('military', '1'); ?>>1</option>
	            <option value="2" <?php echo set_select('military', '2'); ?>>2</option>
	            <option value="3" <?php echo set_select('military', '3'); ?>>3</option>
	            <option value="4" <?php echo set_select('military', '4'); ?>>4</option>
	          </select>
			</td>
			</tr>
			<tr>
				<td colspan="5" style="font-size:11px;"><br>
					<input type="checkbox" name="cip" value="1" <?php echo set_checkbox('cip', '1'); ?>><?php echo $this->lang->line('cip_service');?>
				</td>
			</tr>
			<tr>
				<td colspan="5" align="center"><br><button style="width:200px;" value="<?php echo $this->lang->line('search_flight');?>" type="submit"><?php echo $this->lang->line('search_flight');?></button></td>
			</tr>
			</table>
			<?php echo form_close();?>
	  </div><br><br>
	  <div class="error">
	    <?php echo validation_errors(); ?>
	  </div>
	</div>
</div>